import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import * as icons from '@element-plus/icons'
import installElementPlus from './plugins/element'
import './styles/index.scss'
import './permission'
// 引入icon
import installIcon from '@/icons'
// filter
import installFilter from '@/filters'
// 打印
import installDirective from '@/directives'
//  5.03 引入国际化
import i18n from './i18n'
const app = createApp(App)
installElementPlus(app)
installIcon(app)
installFilter(app)
installDirective(app)
Object.keys(icons).forEach((key) => {
  app.component(key, icons[key])
})
app.use(i18n).use(store).use(router).mount('#app')
